interface _CO_ {
    /**
     * 判断是否为空
     * @param obj 对象
     * @param enumerable <true>; true: 忽略不可枚举属性; false: 不忽略不可枚举属性空对象;
     * @returns true: 空（即无属性）; false: 非空（即有属性）;
     */
    isEmpty(obj: object, enumerable?: boolean): boolean;
}
{
    Object.defineProperty(_CO_.prototype, 'isEmpty', {
        writable: false,
        configurable: false,
        enumerable: false,
        value: function (obj: any, enumerable = true) {
            return enumerable ? Object.keys(obj).length === 0 : Object.getOwnPropertyNames(obj).length === 0;
        }
    });
}
